package com.hongyuan.coach.data;

import java.util.HashMap;
import java.util.Map;

public class Constants {

    /*
    * Integer:接口code
    * String:接口名
    * */
    private Map<Integer,String> apis = new HashMap<>();

    private static Constants constants = null;

    private Constants(){
        addApis();
    }

    public static Constants getInstance(){
        if(constants == null){
            constants = new Constants();
        }
        return constants;
    }

    private void addApis(){
        apis.put(GET_TOKEN, "api_token");
        apis.put(MEMBERLOGIN, "memberlogin");
        apis.put(UPFILE_OSS, "upfile_oss");
        apis.put(UPFILE_OSS_MORE, "upfile_oss_more");
        apis.put(GET_MESSAGE_TOKEN, "get_token");
        apis.put(SEND_REGI_MSG, "send_regi_msg");
        apis.put(DO_FIND_PASSWORD, "do_find_password");
        apis.put(MEMBERLOGIN_DXM, "memberlogin_dxm");
        apis.put(CHECK_APP_VERSION, "check_app_version");
        apis.put(GET_PLAN_DATA, "get_plan_date");
        apis.put(GET_COACH_APPOINTMENT_COURSE_PRIVITE_LIST, "get_coach_appointment_course_privite_list");
        apis.put(JL_UN_AGREE_CANCEL, "jl_un_agree_cancel");
        apis.put(JL_AGREE_CANCEL, "jl_agree_cancel");
        apis.put(CP_LIST, "cp_list");
        apis.put(PRIVITE_COACH_LIST, "privite_coach_list");
        apis.put(GET_COACH_TIMEPLAN_DAY_LIST, "get_coach_timeplan_day_list");
        apis.put(GET_COACH_TIMEPLAN_DAY_LIST_COACH, "get_coach_timeplan_day_list_coach");
        apis.put(DEL_COACH_TIMEPLAN, "del_coach_timeplan");
        apis.put(ADD_COACH_TIMEPLAN, "add_coach_timeplan");
        apis.put(PRIVITE_USER_ORDER, "privite_user_order");
        apis.put(ADD_COURSE_PRIVITE_APPOINTMENT, "add_course_privite_appointment");
        apis.put(GET_COURSE_PRIVITE_LIST, "get_course_privite_list");
        apis.put(GET_COACH_TIMEPLAN_LIST, "get_coach_timeplan_list");
        apis.put(GET_COURSE_PRIVITE_INFO, "get_course_privite_info");
        apis.put(GET_COACH_MEMBERS, "get_coach_members");
        apis.put(COURSE_INDEX, "course_index");
        apis.put(ORDER_ACHIEVEMENT, "order_achievement");
        apis.put(OS_LIST, "os_list");
        apis.put(CPA_ACHIEVEMENT, "cpa_achievement");
        apis.put(MEMBER_INFO, "member_info");
        apis.put(CP_MEMBER, "cp_member");
        apis.put(IN_MEMBER, "in_member");
        apis.put(CPA_MEMBER, "cpa_member");
        apis.put(GET_COACH_INDEX_INFO, "get_coach_index_info");
        apis.put(GET_COACH_LAST_KONG_TIME, "get_coach_last_kong_time");
        apis.put(GET_COACH_PHOTO_LIST, "get_coach_photo_list");
        apis.put(DEL_PHOTOS, "del_photos");
        apis.put(ADD_COACH_PHOTO, "add_coach_photo");
    }

    /*
     * 获取请求接口名
     * */
    public String getPath(int code){
        return apis.get(code);
    }

    /*==================================================================================*/


    /*================================接口code=======================================*/

    //token的获取
    public final static int  GET_TOKEN = 0x001;
    //登录接口
    public final static int  MEMBERLOGIN = 0x002;
    //单文件上传
    public final static int  UPFILE_OSS = 0x03;
    //多文件上传
    public final static int  UPFILE_OSS_MORE = 0x04;
    //获取手机验证码token
    public final static int  GET_MESSAGE_TOKEN = 0x005;
    //获取短信验证码
    public final static int  SEND_REGI_MSG = 0x006;
    //修改密码
    public final static int  DO_FIND_PASSWORD = 0x007;
    //验证码登录
    public final static int  MEMBERLOGIN_DXM = 0x008;
    //检查更新app
    public final static int  CHECK_APP_VERSION = 0x009;
    //获取首页头部时间
    public final static int  GET_PLAN_DATA = 0x010;
    //获取首页约课内容
    public final static int  GET_COACH_APPOINTMENT_COURSE_PRIVITE_LIST = 0x011;
    //驳回取消约课
    public final static int  JL_UN_AGREE_CANCEL = 0x012;
    //同意取消约课
    public final static int  JL_AGREE_CANCEL = 0x013;
    //获取约课里面的课程
    public final static int  CP_LIST = 0x014;
    //获取约课里面的教练
    public final static int  PRIVITE_COACH_LIST = 0x015;
    //获取教练一天的空闲时间
    public final static int  GET_COACH_TIMEPLAN_DAY_LIST = 0x016;
    //获取教练可编辑的时间
    public final static int  GET_COACH_TIMEPLAN_DAY_LIST_COACH = 0x017;
    //修改教练空闲时间
    public final static int  DEL_COACH_TIMEPLAN = 0x018;
    //修改教练空闲时间
    public final static int  ADD_COACH_TIMEPLAN = 0x019;
    //获取课程对应的学员
    public final static int  PRIVITE_USER_ORDER = 0x020;
    //给学员约课
    public final static int  ADD_COURSE_PRIVITE_APPOINTMENT = 0x021;
    //我的私教课
    public final static int  GET_COURSE_PRIVITE_LIST = 0x022;
    //我的私教课
    public final static int  GET_COACH_TIMEPLAN_LIST = 0x023;
    //私教课详情
    public final static int  GET_COURSE_PRIVITE_INFO = 0x024;
    //我的学员
    public final static int  GET_COACH_MEMBERS = 0x025;
    //课程首页数据
    public final static int  COURSE_INDEX = 0x026;
    //私教课销售业绩
    public final static int  ORDER_ACHIEVEMENT = 0x027;
    //获取教练门店
    public final static int  OS_LIST = 0x028;
    //上课业绩
    public final static int  CPA_ACHIEVEMENT = 0x029;
    //学员基本信息
    public final static int  MEMBER_INFO = 0x030;
    //学员课程列表
    public final static int  CP_MEMBER = 0x031;
    //学员入场记录
    public final static int  IN_MEMBER = 0x032;
    //学员上课记录
    public final static int  CPA_MEMBER = 0x033;
    //获取教练个人信息
    public final static int  GET_COACH_INDEX_INFO = 0x034;
    //获取教练最近空闲时间
    public final static int  GET_COACH_LAST_KONG_TIME = 0x035;
    //获取教练风采图片
    public final static int  GET_COACH_PHOTO_LIST = 0x036;
    //删除教练图片
    public final static int  DEL_PHOTOS = 0x037;
    //添加教练图片
    public final static int  ADD_COACH_PHOTO = 0x038;

}
